package net.sk.china.city.service.impl;

import java.util.List;

import net.sk.china.city.service.IArDonationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import net.sk.china.city.mapper.ArDonationsMapper;
import net.sk.china.city.domain.ArDonations;

/**
 * 捐赠物品Service业务层处理
 * 
 * @author gxf
 * @date 2024-04-07
 */
@Service
public class ArDonationsServiceImpl implements IArDonationsService
{
    @Autowired
    private ArDonationsMapper arDonationsMapper;

    /**
     * 查询捐赠物品
     * 
     * @param id 捐赠物品主键
     * @return 捐赠物品
     */
    @Override
    public ArDonations selectArDonationsById(Long id)
    {
        return arDonationsMapper.selectArDonationsById(id);
    }

    /**
     * 查询捐赠物品列表
     * 
     * @param arDonations 捐赠物品
     * @return 捐赠物品
     */
    @Override
    public List<ArDonations> selectArDonationsList(ArDonations arDonations)
    {
        return arDonationsMapper.selectArDonationsList(arDonations);
    }

    /**
     * 新增捐赠物品
     * 
     * @param arDonations 捐赠物品
     * @return 结果
     */
    @Override
    public int insertArDonations(ArDonations arDonations)
    {
        return arDonationsMapper.insertArDonations(arDonations);
    }

    /**
     * 修改捐赠物品
     * 
     * @param arDonations 捐赠物品
     * @return 结果
     */
    @Override
    public int updateArDonations(ArDonations arDonations)
    {
        return arDonationsMapper.updateArDonations(arDonations);
    }

    /**
     * 批量删除捐赠物品
     * 
     * @param ids 需要删除的捐赠物品主键
     * @return 结果
     */
    @Override
    public int deleteArDonationsByIds(Long[] ids)
    {
        return arDonationsMapper.deleteArDonationsByIds(ids);
    }

    /**
     * 删除捐赠物品信息
     * 
     * @param id 捐赠物品主键
     * @return 结果
     */
    @Override
    public int deleteArDonationsById(Long id)
    {
        return arDonationsMapper.deleteArDonationsById(id);
    }
}
